package edu.upc.viajes.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;
import edu.upc.viajes.domain.Cliente;
import javax.persistence.ManyToOne;
import edu.upc.viajes.domain.Paquete;

@RooJavaBean
@RooToString
@RooEntity
public class Reservacion {

    @NotNull
    @Size(max = 10)
    private String res_cod;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date res_fech;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date res_valid;

    private Integer res_desc;

    private Integer res_numadult;

    private Integer res_numnino;

    private Integer res_numterc;

    private Float res_costo;

    private Float res_precio;

    @ManyToOne
    private Cliente Cliente;

    @ManyToOne
    private Paquete Paquete;
}
